home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / ntreskit.exe / REMOVE.BAT < prev    next >
DOS Batch File  |  1993-09-16  |  2KB  |  58 lines

  1. @echo off
  2.  
  3. if (%PROCESSOR_ARCHITECTURE%)==() goto BadProcessor
  4. if (%WINDIR%)==() goto BadWinDir
  5. if not exist %WINDIR%\system32\ntoskrnl.exe goto BadWinDir
  6.  
  7. if not exist remove.bat  goto CannotRemove
  8. if not exist ftpctrs.h   goto CannotRemove
  9. if not exist ftpctrs.ini goto CannotRemove
  10. if not exist ftpctrs.reg goto CannotRemove
  11. if not exist ftpctrs.dll goto CannotRemove
  12.  
  13. echo Windows NT FTP Server Performance Counters Removal
  14. echo.
  15. echo This removal script makes the following assumptions:
  16. echo.
  17. echo         o The UNLODCTR utility is on the path.
  18. echo.
  19. echo         o This script is run from the RESKIT directory.
  20. echo.
  21. echo If these assumptions are not valid, please correct and try again.
  22. echo Press CTRL-C to exist now, otherwise
  23. pause
  24.  
  25. if exist %WINDIR%\system32\ftpctrs.dll del %WINDIR%\system32\ftpctrs.dll >nul 2>&1
  26. unlodctr FTPSVC
  27. if errorlevel 1 goto RemoveError
  28.  
  29. echo.
  30. echo Windows NT FTP Server Performance Counters Removal successful.
  31. goto Done
  32.  
  33. :RemoveError
  34.  
  35. echo.
  36. echo Cannot remove the Windows NT FTP Server Performance Counters.
  37. goto Done
  38.  
  39. :CannotRemove
  40.  
  41. echo This removal script MUST be run from the RESKIT
  42. echo directory.
  43. goto Done
  44.  
  45. :BadProcessor
  46.  
  47. echo The PROCESSOR_ARCHITECTURE environment variable must be set to the
  48. echo proper processor type (X86, MIPS, etc) before running this script.
  49. goto Done
  50.  
  51. :BadWinDir
  52.  
  53. echo The WINDIR environment variable must point to the Windows NT
  54. echo installation directory (i.e. C:\NT).
  55. goto Done
  56.  
  57. :Done
  58.